#include <REGX52.H>

void delays(unsigned int time)
{
	int i,j;
	for(i = 0;i<time;i++)
	{
		for(j = 0;j<i;j++)
		{
			;
		}
	}
}

void main()
{
	while(1)
	{
	P2 = 0x7F;
	delays(100);
	
	P2 = 0xBF;
	delays(100);

	P2 = 0xDF;
	delays(100);
	
	P2 = 0xEF;
	delays(100);
	
	P2 = 0xF7;
	delays(100);
	
	P2 = 0xFB;
	delays(100);
	
	P2 = 0xFD;
	delays(100);
	
	P2 = 0xFE;
	delays(100);
	}	
}
